/*    */ package server.maps;
/*    */ 
/*    */ import client.MapleCharacter;
/*    */ import client.MapleClient;
/*    */ import java.awt.Point;
/*    */ import tools.MaplePacketCreator;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class MechDoor
/*    */   extends MapleMapObject
/*    */ {
/*    */   private int owner;
/*    */   private int partyid;
/*    */   private int id;
/*    */   
/*    */   public MechDoor() {}
/*    */   
/*    */   public MechDoor(MapleCharacter owner, Point pos, int id) {
/* 23 */     this.owner = owner.getId();
/* 24 */     this.partyid = (owner.getParty() == null) ? 0 : owner.getParty().getPartyId();
/* 25 */     setPosition(pos);
/* 26 */     this.id = id;
/*    */   }
/*    */ 
/*    */   
/*    */   public void sendSpawnData(MapleClient client) {
/* 31 */     client.announce(MaplePacketCreator.spawnMechDoor(this, false));
/*    */   }
/*    */ 
/*    */   
/*    */   public void sendDestroyData(MapleClient client) {
/* 36 */     client.announce(MaplePacketCreator.removeMechDoor(this, false));
/*    */   }
/*    */   
/*    */   public int getOwnerId() {
/* 40 */     return this.owner;
/*    */   }
/*    */   
/*    */   public int getPartyId() {
/* 44 */     return this.partyid;
/*    */   }
/*    */   
/*    */   public int getId() {
/* 48 */     return this.id;
/*    */   }
/*    */ 
/*    */   
/*    */   public MapleMapObjectType getType() {
/* 53 */     return MapleMapObjectType.DOOR;
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\server\maps\MechDoor.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */